package kr.saeildamil.androidstudy.ch17;

import java.net.URI;

import android.app.TabActivity;
import android.content.ComponentName;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.widget.TabHost;

public class TabTest extends TabActivity {
	TabHost mTab;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		TabHost tabHost = getTabHost();
		
		Intent intent1 = new Intent("kr.saeildamil.androidstudy.ch17.ALC");
		intent1.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
		tabHost.addTab(tabHost.newTabSpec("tab1")
				.setIndicator("Activity Life Cycle")
				.setContent(intent1));
		
		Intent intent2 = new Intent(this,SaveState.class);
		//intent2.setComponent(new ComponentName("kr.saeildamil.androidstudy.ch17", "kr.saeildamil.androidstudy.ch17.SaveState"));
		intent2.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
		tabHost.addTab(tabHost.newTabSpec("tab2")
				.setIndicator("SaveState")
				.setContent(intent2));
		
		Intent intent3 = new Intent(this, SaveCurve.class);
		intent3.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
		tabHost.addTab(tabHost.newTabSpec("tab3")
				.setIndicator("SaveCurve")
				.setContent(intent3));
	}
}
